-- ship_reduce_attrib
-- create by wangy
-- 飞艇属性降低N

return {
    apply = function(prop, baseValue)
        local value = baseValue - prop[3];
        -- 如果原来大于0
        if baseValue > 0 then
            value = math.max(0, value);
        end

        return value;
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;
        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
